package com.hisysteTopet.hisystepet.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hisysteTopet.hisystepet.bean.UserMessage;
import com.hisysteTopet.hisystepet.mapper.UserMessageMapper;
import com.hisysteTopet.hisystepet.service.UserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserMessageServiceImpl extends ServiceImpl<UserMessageMapper, UserMessage> implements UserMessageService {
    @Autowired
    UserMessageMapper userMessageMapper;

    @Override
    public UserMessage userMessage(String username) {
        return userMessageMapper.userMessage(username);
    }

    @Override
    public void updateToAddress(String username, String address) {
        userMessageMapper.updateToAddress(username, address);
    }

    @Override
    public void insertUserMessage(String username, String name, String sex, Long phone, String address) {
        userMessageMapper.insertUserMessage(username,name,sex,phone,address);
    }
}
